]> git.pld-linux.org Git - packages/ufraw.git/blame - ufraw.spec
- added openmp patch (fix gcc 9+ OpenMP compatibility); release 12
[packages/ufraw.git] / ufraw.spec
CommitLineData
f3048e9a
JB
1#
2# Conditional build:
6241afbd 3%bcond_without gimp # GIMP plugin
2eebac95 4%bcond_without openmp # OpenMP support
9c9c99ea 5#
17c015b1 6Summary: RAW photo loader
06578e68 7Summary(pl.UTF-8): Narzędzie do wczytywania zdjęć w formacie RAW
17c015b1 8Name: ufraw
9303435d 9Version: 0.22
4a952682 10Release: 13
f3048e9a 11License: GPL v2+
10750033 12Group: Applications/Graphics
448d35fd 13Source0: http://downloads.sourceforge.net/ufraw/%{name}-%{version}.tar.gz
9303435d 14# Source0-md5: c30767cae2c44310f2a3d67d7a76f2c3
66fdc3c6
JR
15Patch0: 05_fix_build_due_to_unsigned_char.patch
16Patch1: ufraw-find_green.patch
17Patch2: ufraw-lf-destroy.patch
18Patch3: ufraw-multipliers.patch
52886692 19Patch4: exiv2-0.27.patch
6aa35cfe 20Patch5: %{name}-include.patch
4a952682 21Patch6: %{name}-openmp.patch
17c015b1 22URL: http://ufraw.sourceforge.net/
9f11b4a3
TP
23BuildRequires: automake
24BuildRequires: bzip2-devel
25BuildRequires: cfitsio-devel
b929210a 26BuildRequires: exiv2-devel >= 0.20
2eebac95 27%{?with_openmp:BuildRequires: gcc-c++ >= 6:4.2}
25df0b19 28BuildRequires: gettext-tools
6241afbd 29%{?with_gimp:BuildRequires: gimp-devel >= 2.6.0}
f3048e9a
JB
30BuildRequires: glib2-devel >= 1:2.12
31BuildRequires: gtk+2-devel >= 2:2.12
32BuildRequires: gtkimageview-devel >= 1.6
b929210a 33BuildRequires: jasper-devel
0d2a5365 34BuildRequires: lcms2-devel >= 2
f3048e9a 35BuildRequires: lensfun-devel >= 0.2.5
2eebac95 36%{?with_openmp:BuildRequires: libgomp-devel}
17c015b1 37BuildRequires: libjpeg-devel
9bf0ec24
JB
38BuildRequires: libpng-devel >= 1.2
39BuildRequires: libstdc++-devel
40BuildRequires: libtiff-devel >= 4
f3048e9a
JB
41BuildRequires: perl-tools-pod
42BuildRequires: pkgconfig >= 1:0.9.0
9f11b4a3 43BuildRequires: zlib-devel
9c9c99ea 44Requires(post,postun): desktop-file-utils
89bfeae8 45Requires(post,postun): shared-mime-info >= 0.21
448d35fd 46Requires(post,preun): GConf2 >= 2.16.0
e9c6ac4a 47Requires: exiv2-libs >= 0.20
f3048e9a
JB
48Requires: glib2 >= 1:2.12
49Requires: gtk+2 >= 1:2.12
50Requires: gtkimageview >= 1.6
0d2a5365 51Requires: lcms2 >= 2
f3048e9a 52Requires: lensfun >= 0.2.5
0d2a5365 53Obsoletes: cinepaint-plugin-ufraw
17c015b1 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
6241afbd
JB
56%if %{with gimp}
57%define gimp_plugindir %(gimptool --gimpplugindir)/plug-ins
58%endif
17c015b1 59
60%description
88c0041e
JB
61UFRaw is a utility to read and manipulate raw images from digital
62cameras. It can be used by itself or as a GIMP plug-in. It reads raw
63images using Dave Coffin's raw conversion utility DCRaw. And it
64supports basic color management using Little CMS, allowing the user to
65apply color profiles.
66
257d172f 67%description -l pl.UTF-8
448d35fd
SP
68UFRaw to narzędzie do czytania i przetwarzania zdjęć w formacie RAW
69różnych aparatów cyfrowych. Może być używane samodzielnie lub jako
70wtyczka programu GIMP. Zdjęcia w formacie RAW są wczytywane za pomocą
71programu DCRaw Dave'a Coffina. Użytkownik ma możliwość stosowania
72profili kolorów dzięki bibliotece Little CMS.
17c015b1 73
17c015b1 74%package batch
75Summary: RAW photo loader batch software
06578e68 76Summary(pl.UTF-8): Program do wsadowego przetwarzania zdjęć w formacie RAW
10750033 77Group: Applications/Graphics
b929210a 78Requires: exiv2 >= 0.20
f3048e9a 79Requires: glib2 >= 1:2.12
0d2a5365 80Requires: lcms2 >= 2
f3048e9a 81Requires: lensfun >= 0.2.5
17c015b1 82
83%description batch
88c0041e
JB
84RAW photo loader batch software.
85
257d172f
JR
86%description batch -l pl.UTF-8
87Program do wsadowego przetwarzania zdjęć w formacie RAW.
17c015b1 88
f3048e9a
JB
89%package -n gimp-plugin-ufraw
90Summary: RAW photo loader GIMP plugin
91Summary(pl.UTF-8): Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW
92Group: Applications/Graphics
b929210a 93Requires: exiv2 >= 0.20
f3048e9a
JB
94Requires: gimp >= 2.6.0
95Requires: glib2 >= 1:2.12
96Requires: gtk+2 >= 1:2.12
97Requires: gtkimageview >= 1.6
0d2a5365 98Requires: lcms2 >= 2
f3048e9a
JB
99Requires: lensfun >= 0.2.5
100
101%description -n gimp-plugin-ufraw
102RAW photo loader GIMP plugin.
103
104%description -n gimp-plugin-ufraw -l pl.UTF-8
105Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW.
106
17c015b1 107%prep
108%setup -q
66fdc3c6
JR
109%patch0 -p1
110%patch1 -p1
111%patch2 -p1
112%patch3 -p1
52886692 113%patch4 -p1
6aa35cfe 114%patch5 -p1
4a952682 115%patch6 -p1
17c015b1 116
117%build
9f11b4a3 118cp -f /usr/share/automake/mkinstalldirs .
a563fb7b 119%configure \
f3048e9a 120 --disable-silent-rules \
2eebac95 121 %{!?with_openmp:--disable-openmp} \
9f11b4a3
TP
122 --enable-contrast \
123 --enable-dst-correction \
124 --enable-extras \
91a13f7d 125 --enable-mime \
6241afbd
JB
126 --with-gimp%{!?with_gimp:=no} \
127 --with-gtk
d651cf46 128
17c015b1 129%{__make}
130
131%install
132rm -rf $RPM_BUILD_ROOT
cdca803f 133install -d $RPM_BUILD_ROOT%{_desktopdir}
17c015b1 134
135%{__make} install \
9c9c99ea 136 DESTDIR=$RPM_BUILD_ROOT \
137 schemasdir=%{_sysconfdir}/gconf/schemas
85870c0b 138
85870c0b 139install ufraw.desktop $RPM_BUILD_ROOT%{_desktopdir}
f3048e9a 140%{__rm} $RPM_BUILD_ROOT%{_bindir}/dcraw
17c015b1 141
cdca803f
PG
142%find_lang %{name}
143
17c015b1 144%clean
145rm -rf $RPM_BUILD_ROOT
146
9c9c99ea 147%post
9c9c99ea 148%gconf_schema_install ufraw.schemas
149%update_desktop_database_post
150
151%preun
152%gconf_schema_uninstall ufraw.schemas
153
154%postun
155%update_desktop_database_postun
9c9c99ea 156
cdca803f 157%files -f %{name}.lang
17c015b1 158%defattr(644,root,root,755)
3558306a 159%doc README TODO
9f11b4a3 160%attr(755,root,root) %{_bindir}/nikon-curve
17c015b1 161%attr(755,root,root) %{_bindir}/ufraw
f3048e9a
JB
162%{_desktopdir}/ufraw.desktop
163%{_pixmapsdir}/ufraw.png
9c9c99ea 164%{_sysconfdir}/gconf/schemas/%{name}.schemas
0d2a5365 165%{_datadir}/appdata/ufraw.appdata.xml
f3048e9a 166%{_mandir}/man1/ufraw.1*
17c015b1 167
168%files batch
169%defattr(644,root,root,755)
170%attr(755,root,root) %{_bindir}/ufraw-batch
f3048e9a 171
6241afbd 172%if %{with gimp}
f3048e9a
JB
173%files -n gimp-plugin-ufraw
174%defattr(644,root,root,755)
6241afbd
JB
175%attr(755,root,root) %{gimp_plugindir}/ufraw-gimp
176%endif
This page took 0.271291 seconds and 4 git commands to generate.