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

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

spec: libraw: Release version LibRaw.0.19.2-2.

File size: 2.8 KB
Line 
1Summary: Library for reading RAW files obtained from digital photo cameras
2Name: LibRaw
3Version: 0.19.2
4Release: 2%{?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
75
76%install
77cp -pr doc manual
78chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
79chmod 644 manual/*.html
80
81# The Libraries
82%make_install
83
84rm -rfv samples/.deps
85rm -fv samples/.dirstamp
86rm -fv samples/*.o
87
88rm -fv %{buildroot}%{_libdir}/lib*.la
89
90#%ldconfig_scriptlets
91
92%files
93%doc Changelog.txt
94%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
95%{_libdir}/raw*19*.dll
96#%{_libdir}/libraw_r.so.19*
97
98%files static
99#%{_libdir}/libraw.a
100%{_libdir}/raw*.a
101
102%files devel
103%doc manual
104%doc samples
105%{_includedir}/libraw/
106%{_libdir}/raw*.dll
107#%{_libdir}/libraw_r.so
108%{_libdir}/pkgconfig/libraw.pc
109%{_libdir}/pkgconfig/libraw_r.pc
110%exclude %{_docdir}/libraw/*
111
112%files samples
113%{_bindir}/*
114
115%changelog
116* Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-2
117- Add patch to source as thats better if have own repo
118
119* Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-1
120- First Rpm version OS/2
Note: See TracBrowser for help on using the repository browser.