rawstudio/rawstudio.spec

148 lines
5.0 KiB
RPMSpec
Raw Normal View History

%define gittag %(echo %version | cut -d+ -f2 | cut -d. -f2)
Name: rawstudio
Version: 2.0+20210602git.c140a5e
Release: 1mamba
Summary: Read, manipulate and convert digital camera raw images
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://rawstudio.org/
Source: https://github.com/rawstudio/rawstudio.git/master@%{gittag}/rawstudio-%{version}.tar.bz2
Patch0: rawstudio-2.0+20210602git.c140a5e-libxml2-2.13.5.patch
Patch1: rawstudio-2.0+20210602git.c140a5e-load-dcraw_9.28.patch
Patch2: rawstudio-2.0+20210602git.c140a5e-exiv2-0.28.3.patch
Patch3: rawstudio-2.0+20210602git.c140a5e-c99.patch
Patch4: rawstudio-2.0+20210602git.c140a5e-Fix-Rw2Decoder.patch
Patch5: rawstudio-2.0+20210602git.c140a5e-add_RAW_extension_to_load_by_rawspeed.patch
Patch6: rawstudio-2.0+20210602git.c140a5e-liblcms2-2.16.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libexiv2-devel
BuildRequires: libfftw-devel
BuildRequires: libgcc
BuildRequires: libgconf-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgomp-devel
BuildRequires: libgphoto2-devel
BuildRequires: libgtk2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libjpeg-turbo
BuildRequires: liblcms2-devel
BuildRequires: liblensfun-devel
BuildRequires: libpango-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libgphoto2-devel >= 1:2.5.19-1mamba
BuildRequires: liblensfun-devel >= 0.3.2-1mamba
BuildRequires: libxml2-devel
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Rawstudio is a highly specialized application for processing RAW images from digital cameras. It is not a fully featured image editing application.
The RAW format is often recommended to get the best quality out of digital camera images. The format is specific to cameras and cannot be read by most image editing applications.
Rawstudio makes it possible to read and manipulate RAW images, experiment with the controls to see how they affect the image, and finally export into JPEG, PNG or TIF format images from most digital cameras.
%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}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains development files for lib%{name}.
%prep
%setup -q
%patch 0 -p1 -b .libxml2-2.13.5
%patch 1 -p1 -b .load-dcraw_9.28
%patch 2 -p1 -b .exiv2-0.28.3
%patch 3 -p1 -b .c99
%patch 4 -p1 -b .Fix-Rw2Decoder
%patch 5 -p1 -b .add_RAW_extension_to_load_by_rawspeed
%patch 6 -p1
NOCONFIGURE=1 ./autogen.sh
%build
%configure \
--disable-static
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/rawstudio
%{_datadir}/pixmaps/rawstudio
%{_datadir}/applications/rawstudio.desktop
%{_datadir}/appdata/rawstudio.appdata.xml
%{_datadir}/icons/rawstudio.png
%files -n lib%{name}
%defattr(-,root,root)
%dir %{_datadir}/rawspeed
%{_datadir}/rawspeed/cameras.xml
%dir %{_datadir}/rawstudio
%{_datadir}/rawstudio/*
%{_libdir}/librawstudio.so
%dir %{_libdir}/rawstudio/plugins
%{_libdir}/rawstudio/plugins/*.so
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/rawstudio-2.1
%{_includedir}/rawstudio-2.1/*.h
%{_libdir}/librawstudio-2.1.so
%{_libdir}/pkgconfig/rawstudio-2.1.pc
%changelog
* Sat Jan 25 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0+20210602git.c140a5e-1mamba
- update to 2.0+20210602git.c140a5e
* Tue Oct 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-4mamba
- rebuilt by autoport with build requirements: libgphoto2-devel>=2.5.19-1mamba
* Sat Mar 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-3mamba
- rebuilt by autoport with build requirements: liblensfun-devel>=0.3.2-1mamba
* Fri Dec 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-2mamba
- rebuilt with libgphoto2 2.5.5
* Mon Jun 03 2013 Automatic Build System <autodist@mambasoft.it> 2.0-1mamba
- automatic version update by autodist
- added patch to fix libpng1.5 compatibility issue
* Mon Apr 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- automatic update by autodist
* Sun Feb 01 2009 Fabio Giani <fabio.giani@gmail.com> 1.1-1mamba
- package created by autospec