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