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