]>
Commit | Line | Data |
---|---|---|
f3048e9a JB |
1 | # |
2 | # Conditional build: | |
6241afbd | 3 | %bcond_without gimp # GIMP plugin |
2eebac95 | 4 | %bcond_without openmp # OpenMP support |
9c9c99ea | 5 | # |
17c015b1 | 6 | Summary: RAW photo loader |
06578e68 | 7 | Summary(pl.UTF-8): Narzędzie do wczytywania zdjęć w formacie RAW |
17c015b1 | 8 | Name: ufraw |
9303435d | 9 | Version: 0.22 |
1a007a6d | 10 | Release: 3 |
f3048e9a | 11 | License: GPL v2+ |
10750033 | 12 | Group: Applications/Graphics |
448d35fd | 13 | Source0: http://downloads.sourceforge.net/ufraw/%{name}-%{version}.tar.gz |
9303435d | 14 | # Source0-md5: c30767cae2c44310f2a3d67d7a76f2c3 |
17c015b1 | 15 | URL: http://ufraw.sourceforge.net/ |
9f11b4a3 TP |
16 | BuildRequires: automake |
17 | BuildRequires: bzip2-devel | |
18 | BuildRequires: cfitsio-devel | |
b929210a | 19 | BuildRequires: exiv2-devel >= 0.20 |
2eebac95 | 20 | %{?with_openmp:BuildRequires: gcc-c++ >= 6:4.2} |
25df0b19 | 21 | BuildRequires: gettext-tools |
6241afbd | 22 | %{?with_gimp:BuildRequires: gimp-devel >= 2.6.0} |
f3048e9a JB |
23 | BuildRequires: glib2-devel >= 1:2.12 |
24 | BuildRequires: gtk+2-devel >= 2:2.12 | |
25 | BuildRequires: gtkimageview-devel >= 1.6 | |
b929210a | 26 | BuildRequires: jasper-devel |
0d2a5365 | 27 | BuildRequires: lcms2-devel >= 2 |
f3048e9a | 28 | BuildRequires: lensfun-devel >= 0.2.5 |
2eebac95 | 29 | %{?with_openmp:BuildRequires: libgomp-devel} |
17c015b1 | 30 | BuildRequires: libjpeg-devel |
9bf0ec24 JB |
31 | BuildRequires: libpng-devel >= 1.2 |
32 | BuildRequires: libstdc++-devel | |
33 | BuildRequires: libtiff-devel >= 4 | |
f3048e9a JB |
34 | BuildRequires: perl-tools-pod |
35 | BuildRequires: pkgconfig >= 1:0.9.0 | |
9f11b4a3 | 36 | BuildRequires: zlib-devel |
9c9c99ea | 37 | Requires(post,postun): desktop-file-utils |
89bfeae8 | 38 | Requires(post,postun): shared-mime-info >= 0.21 |
448d35fd | 39 | Requires(post,preun): GConf2 >= 2.16.0 |
b929210a | 40 | Requires: exiv2 >= 0.20 |
f3048e9a JB |
41 | Requires: glib2 >= 1:2.12 |
42 | Requires: gtk+2 >= 1:2.12 | |
43 | Requires: gtkimageview >= 1.6 | |
0d2a5365 | 44 | Requires: lcms2 >= 2 |
f3048e9a | 45 | Requires: lensfun >= 0.2.5 |
0d2a5365 | 46 | Obsoletes: cinepaint-plugin-ufraw |
17c015b1 | 47 | BuildRoot: %{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 |
54 | UFRaw is a utility to read and manipulate raw images from digital |
55 | cameras. It can be used by itself or as a GIMP plug-in. It reads raw | |
56 | images using Dave Coffin's raw conversion utility DCRaw. And it | |
57 | supports basic color management using Little CMS, allowing the user to | |
58 | apply color profiles. | |
59 | ||
257d172f | 60 | %description -l pl.UTF-8 |
448d35fd SP |
61 | UFRaw to narzędzie do czytania i przetwarzania zdjęć w formacie RAW |
62 | różnych aparatów cyfrowych. Może być używane samodzielnie lub jako | |
63 | wtyczka programu GIMP. Zdjęcia w formacie RAW są wczytywane za pomocą | |
64 | programu DCRaw Dave'a Coffina. Użytkownik ma możliwość stosowania | |
65 | profili kolorów dzięki bibliotece Little CMS. | |
17c015b1 | 66 | |
17c015b1 | 67 | %package batch |
68 | Summary: RAW photo loader batch software | |
06578e68 | 69 | Summary(pl.UTF-8): Program do wsadowego przetwarzania zdjęć w formacie RAW |
10750033 | 70 | Group: Applications/Graphics |
b929210a | 71 | Requires: exiv2 >= 0.20 |
f3048e9a | 72 | Requires: glib2 >= 1:2.12 |
0d2a5365 | 73 | Requires: lcms2 >= 2 |
f3048e9a | 74 | Requires: lensfun >= 0.2.5 |
17c015b1 | 75 | |
76 | %description batch | |
88c0041e JB |
77 | RAW photo loader batch software. |
78 | ||
257d172f JR |
79 | %description batch -l pl.UTF-8 |
80 | Program do wsadowego przetwarzania zdjęć w formacie RAW. | |
17c015b1 | 81 | |
f3048e9a JB |
82 | %package -n gimp-plugin-ufraw |
83 | Summary: RAW photo loader GIMP plugin | |
84 | Summary(pl.UTF-8): Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW | |
85 | Group: Applications/Graphics | |
b929210a | 86 | Requires: exiv2 >= 0.20 |
f3048e9a JB |
87 | Requires: gimp >= 2.6.0 |
88 | Requires: glib2 >= 1:2.12 | |
89 | Requires: gtk+2 >= 1:2.12 | |
90 | Requires: gtkimageview >= 1.6 | |
0d2a5365 | 91 | Requires: lcms2 >= 2 |
f3048e9a JB |
92 | Requires: lensfun >= 0.2.5 |
93 | ||
94 | %description -n gimp-plugin-ufraw | |
95 | RAW photo loader GIMP plugin. | |
96 | ||
97 | %description -n gimp-plugin-ufraw -l pl.UTF-8 | |
98 | Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW. | |
99 | ||
17c015b1 | 100 | %prep |
101 | %setup -q | |
102 | ||
103 | %build | |
9f11b4a3 | 104 | cp -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 | |
118 | rm -rf $RPM_BUILD_ROOT | |
cdca803f | 119 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
17c015b1 | 120 | |
121 | %{__make} install \ | |
9c9c99ea | 122 | DESTDIR=$RPM_BUILD_ROOT \ |
123 | schemasdir=%{_sysconfdir}/gconf/schemas | |
85870c0b | 124 | |
85870c0b | 125 | install 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 |
131 | rm -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 |