From 621a545d790b899d149ffc2e11a8e2cccab84567 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:38:35 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.9.2-1mamba;Tue Dec 01 2020] --- README.md | 2 + hargyllcms.spec | 125 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 hargyllcms.spec diff --git a/README.md b/README.md index dfe4d81..04d6045 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hargyllcms +An ICC compatible color management system with support for different colorimeter hardware. + diff --git a/hargyllcms.spec b/hargyllcms.spec new file mode 100644 index 0000000..99d2d0d --- /dev/null +++ b/hargyllcms.spec @@ -0,0 +1,125 @@ +Name: hargyllcms +Version: 1.9.2 +Release: 1mamba +Summary: An ICC compatible color management system with support for different colorimeter hardware +Group: Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/hughsie/hargyllcms +Source: http://people.freedesktop.org/~hughsient/releases/hargyllcms-%{version}.tar.xz +License: GPL, Affero GNU Public License, MPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXinerama-devel +BuildRequires: libXrandr-devel +BuildRequires: libXrender-devel +BuildRequires: libXxf86vm-devel +BuildRequires: libjbig-devel +BuildRequires: libjpeg-devel +BuildRequires: liblzma-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libwebp-devel +BuildRequires: libxcb-devel +BuildRequires: libz-devel +BuildRequires: libzstd-devel +## AUTOBUILDREQ-END +Provides: argyllcms +Obsoletes: argyllcms +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +An ICC compatible color management system with support for different colorimeter hardware. + +%package docs +Group: Documentation +Summary: Documentation for %{name} tools + +%description docs +Documentation for %{name} tools. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +# we're not allowed to refer to acquisition devices as scanners +./legal.sh +autoreconf --force --install +chmod -x {ChangeLog,README,Readme.txt,COPYING} +find doc -type f -exec chmod -x '{}' \; +find doc -type f -name '*.htm*' -exec sed -ie 's,\r,,' '{}' \; + +%build +%configure \ + --disable-static \ + CFLAGS="%{optflags} -fcommon" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# rely on colord to provide ENV{COLOR_MEASUREMENT_DEVICE}="1" +rm -f %{buildroot}/lib/udev/rules.d/55-Argyll.rules + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/* +%dir %{_datadir}/color/argyll +%dir %{_datadir}/color/argyll/ref +%{_datadir}/color/argyll/ref/* + +%files docs +%defattr(-,root,root) +%dir %{_datadir}/doc/argyll +%{_datadir}/doc/argyll/* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libargyll.so.* +%{_libdir}/libargyllicc.so.* +%{_libdir}/libimdi.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_libdir}/libargyll.la +%{_libdir}/libargyll.so +%{_libdir}/libargyllicc.la +%{_libdir}/libargyllicc.so +%{_libdir}/libimdi.la +%{_libdir}/libimdi.so +%doc ChangeLog README + +%changelog +* Tue Dec 01 2020 Silvan Calarco 1.9.2-1mamba +- package created using the webbuild interface