libopenraw/libopenraw.spec

119 lines
4.0 KiB
RPMSpec

Name: libopenraw
Version: 0.3.2
Release: 1mamba
Summary: Decode camera RAW files
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://libopenraw.freedesktop.org/
Source: https://libopenraw.freedesktop.org/download/libopenraw-%{version}.tar.bz2
Patch0: libopenraw-0.3.0-gcc-11.1.0.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libjpeg-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libboost-devel
%description
libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding. One of the main reason is that dcraw is not suited for easy integration into applications, and there is a need for an easy to use API to build free software digital image processing application.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding. One of the main reason is that dcraw is not suited for easy integration into applications, and there is a need for an easy to use API to build free software digital image processing application.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
#%patch0 -p1
## Fix libopenraw dependency in -gnome pc file
#sed -e 's|libopenraw-0.1|libopenraw-0.3|' -i gnome/libopenraw-gnome-0.3.pc.in
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/sbin/ldconfig
%{_bindir}/gdk-pixbuf-query-loaders \
> %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
:
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.a
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.la
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libopenraw-*/libopenraw
%{_includedir}/libopenraw-*/libopenraw/*.h
%dir %{_includedir}/libopenraw-*/libopenraw-gnome
%{_includedir}/libopenraw-*/libopenraw-gnome/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/libopenraw-*.pc
%{_libdir}/pkgconfig/libopenraw-gnome-*.pc
%doc ChangeLog NEWS README TODO
%changelog
* Tue Jun 28 2022 Automatic Build System <autodist@mambasoft.it> 0.3.2-1mamba
- automatic version update by autodist
* Sun May 08 2022 Automatic Build System <autodist@mambasoft.it> 0.3.1-1mamba
- automatic version update by autodist
* Tue Jun 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-2mamba
- fixed pkgconfig file; added debug package; added gcc 11.1.0 patch
* Sat Dec 19 2020 Automatic Build System <autodist@mambasoft.it> 0.3.0-1mamba
- automatic version update by autodist
* Sat Aug 29 2020 Automatic Build System <autodist@mambasoft.it> 0.2.3-1mamba
- automatic version update by autodist
* Wed May 30 2018 Automatic Build System <autodist@mambasoft.it> 0.1.3-1mamba
- automatic version update by autodist
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 0.1.2-1mamba
- automatic version update by autodist
* Fri Dec 02 2016 Automatic Build System <autodist@mambasoft.it> 0.1.0-1mamba
- automatic version update by autodist
* Thu Dec 22 2011 Automatic Build System <autodist@mambasoft.it> 0.0.9-1mamba
- update to 0.0.9
* Fri May 15 2009 Automatic Build System <autodist@mambasoft.it> 0.0.8-1mamba
- automatic update by autodist
* Mon Mar 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.6-1mamba
- automatic update by autodist
* Wed Oct 15 2008 gil <puntogil@libero.it> 0.0.5-1mamba
- package created by autospec