source: spec/trunk/SPECS/LibRaw.spec@ 1630

Last change on this file since 1630 was 1582, checked in by tellie, 7 years ago

spec: LibRaw: Release version 0.19.2-5.

File size: 3.2 KB
Line 
1Summary: Library for reading RAW files obtained from digital photo cameras
2Name: LibRaw
3Version: 0.19.2
4Release: 5%{?dist}
5License: BSD and (CDDL or LGPLv2)
6URL: http://www.libraw.org
7
8BuildRequires: gcc
9BuildRequires: lcms2
10BuildRequires: jasper
11BuildRequires: libjpeg
12BuildRequires: autoconf automake libtool
13
14#Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
15%scm_source github http://github.com/TeLLie/%{name}-os2 master-os2
16#Patch0: LibRaw-0.6.0-pkgconfig.patch
17#Patch1: LibRaw-0.17.1-CVE-2015-8366-8367.patch
18Provides: bundled(dcraw) = 9.25
19
20%description
21LibRaw is a library for reading RAW files obtained from digital photo
22cameras (CRW/CR2, NEF, RAF, DNG, and others).
23
24LibRaw is based on the source codes of the dcraw utility, where part of
25drawbacks have already been eliminated and part will be fixed in future.
26
27%package devel
28Summary: LibRaw development libraries
29Requires: %{name}%{?_isa} = %{version}-%{release}
30
31%description devel
32LibRaw development libraries.
33
34This package contains libraries that applications can use to build
35against LibRaw.
36
37%package static
38Summary: LibRaw static development libraries
39Requires: %{name}-devel%{?_isa} = %{version}-%{release}
40
41%description static
42LibRaw static development libraries.
43
44%package samples
45Summary: LibRaw sample programs
46Requires: %{name} = %{version}-%{release}
47
48%description samples
49LibRaw sample programs
50
51%prep
52#%setup -q
53%scm_setup
54autoreconf -vif
55
56#%patch0 -p0 -b .pkgconfig
57#%patch1 -p1 -b .CVE-2015-8366
58
59%build
60export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
61export LIBS="-lcx -lpthread"
62
63%configure \
64 --enable-examples=yes \
65 --enable-jasper \
66 --enable-jpeg \
67 --enable-lcms \
68 --disable-openmp
69
70# https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
71sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
72sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
73
74#%make_build
75make %{?_smp_mflags}
76
77%install
78cp -pr doc manual
79chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
80chmod 644 manual/*.html
81
82# The Libraries
83%make_install
84
85rm -rfv samples/.deps
86rm -fv samples/.dirstamp
87rm -fv samples/*.o
88
89rm -fv %{buildroot}%{_libdir}/lib*.la
90
91#%ldconfig_scriptlets
92
93%files
94%defattr(-,root,root)
95%doc Changelog.txt
96%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
97%{_libdir}/raw*19*.dll
98
99%files static
100%defattr(-,root,root)
101%{_libdir}/raw_r.a
102%{_libdir}/raw.a
103%exclude %{_libdir}/raw*_dll.a
104
105%files devel
106%defattr(-,root,root)
107%doc manual
108%doc samples
109%{_includedir}/libraw/
110%{_libdir}/raw*_dll.a
111%{_libdir}/pkgconfig/libraw.pc
112%{_libdir}/pkgconfig/libraw_r.pc
113%exclude %{_docdir}/libraw/*
114
115%files samples
116%defattr(-,root,root)
117%{_bindir}/*
118
119%changelog
120* Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-5
121- Remove dll's from the devel package.
122
123* Wed Jan 30 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-4
124- Add the raw_*.a files to devel package.
125
126* Sat Dec 29 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-3
127- Link with newer Lcms2
128
129* Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-2
130- Add patch to source as thats better if have own repo
131
132* Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-1
133- First Rpm version OS/2
Note: See TracBrowser for help on using the repository browser.