## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: libdicom Version: 1.1.0 Release: %autorelease Summary: C library and tools for reading DICOM data sets License: MIT URL: https://github.com/ImagingDataCommons/%{name} Source0: https://github.com/ImagingDataCommons/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz # Fix build on EL 8 # https://github.com/ImagingDataCommons/libdicom/pull/85 Patch0: support-uthash-2.0.2.patch BuildRequires: gcc BuildRequires: meson BuildRequires: pkgconfig(check) # header-only library BuildRequires: uthash-static %description libdicom is a C library and a set of tools for reading files that follow the DICOM medical imaging standard. It allows random access to individual frame items of Pixel Data elements, permitting efficient processing of large DICOM images. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch # add HTML documentation once Hawkmoth is packaged # https://bugzilla.redhat.com/show_bug.cgi?id=2242888 %description doc The %{name}-doc package contains documentation for developing applications that use %{name}. %package tools Summary: Tools for decoding DICOM files %description tools The %{name}-tools package contains tools for decoding DICOM files. %prep %autosetup -p1 %build %meson %meson_build mv doc/source doc/text rm doc/text/conf.py %install %meson_install %check %meson_test %files %license LICENSE %{_libdir}/%{name}.so.1{,.*} %files devel %{_includedir}/dicom %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %files doc %license LICENSE %doc README.md doc/text %files tools %{_bindir}/dcm-* %{_mandir}/man1/dcm-*.1* %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Mar 28 2024 Benjamin Gilbert - 1.1.0-2 - Fix build on EL 8 * Thu Mar 28 2024 Benjamin Gilbert - 1.1.0-1 - Update to 1.1.0 * Thu Jan 25 2024 Fedora Release Engineering - 1.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 09 2023 Benjamin Gilbert - 1.0.5-1 - Update to 1.0.5 * Mon Oct 09 2023 Benjamin Gilbert - 1.0.3-1 - Update to 1.0.3 * Mon Oct 09 2023 Benjamin Gilbert - 1.0.2-1 - Initial import (fedora#2241457). ## END: Generated by rpmautospec