]>
Commit | Line | Data |
---|---|---|
79e3192a JB |
1 | # |
2 | # Conditional build: | |
3653e098 | 3 | %bcond_with gimp # build GIMP (1.2.x only) plugin |
79e3192a | 4 | # |
07192fe4 | 5 | Summary: GUI FRONT end for autotrace that extracts outLINE from images |
7678149f | 6 | Summary(pl.UTF-8): Graficzny interfejs do autotrace wyciągającego obrysy z obrazków |
07192fe4 JB |
7 | Name: frontline |
8 | Version: 0.5.4 | |
3b98cbeb | 9 | Release: 12 |
07192fe4 JB |
10 | License: GPL |
11 | Group: X11/Applications/Graphics | |
25f9a1cd | 12 | Source0: http://dl.sourceforge.net/autotrace/%{name}-%{version}.tar.gz |
dce750fd | 13 | # Source0-md5: 5fc2c3459b153dbc2b3138c1133f927e |
07192fe4 | 14 | Patch0: %{name}-shared.patch |
cf95ce99 | 15 | Patch1: %{name}-desktop.patch |
07192fe4 JB |
16 | URL: http://autotrace.sourceforge.net/frontline/ |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
19 | BuildRequires: autotrace-devel >= 0.31.1 | |
44272f0a | 20 | BuildRequires: gettext-tools |
02348cb4 | 21 | %{?with_gimp:BuildRequires: gimp-devel >= 1:1.2.1} |
9430e8da | 22 | %{?with_gimp:BuildRequires: gimp-devel < 1.3} |
07192fe4 JB |
23 | BuildRequires: gnome-libs-devel >= 1.4.0 |
24 | BuildRequires: imlib-devel >= 1.8.2 | |
25 | BuildRequires: libart_lgpl >= 2.3.8 | |
26 | BuildRequires: libtool | |
9430e8da | 27 | BuildRequires: pkgconfig |
07192fe4 | 28 | BuildRequires: popt-devel |
3653e098 | 29 | Requires: %{name}-libs = %{version}-%{release} |
07192fe4 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
9430e8da | 32 | %if %{with gimp} |
f3354ea1 | 33 | %define gimpplugindir %(gimptool --gimpplugindir) |
9430e8da | 34 | %endif |
07192fe4 JB |
35 | |
36 | %description | |
37 | Frontline provides a GTK+/GNOME based GUI front end for autotrace | |
4a1c14eb | 38 | (http://autotrace.sourceforge.net/). This package contains the |
0cc2dcd3 | 39 | `frontline' command, which runs as a stand alone program. It will work |
d7b074a0 | 40 | well with GNOME desktop and nautilus. |
49fbbd8c | 41 | |
0eda6d4e JR |
42 | %description -l pl.UTF-8 |
43 | Frontline udostępnia oparty na GTK+/GNOME graficzny interfejs do | |
4a1c14eb | 44 | autotrace (http://autotrace.sourceforge.net/). Ten pakiet zawiera |
0eda6d4e | 45 | polecenie "frontline", działające jako samodzielny program. Działa |
07192fe4 JB |
46 | dobrze z pulpitem GNOME i nautilusem. |
47 | ||
48 | %package libs | |
49 | Summary: Frontline shared libraries | |
7678149f | 50 | Summary(pl.UTF-8): Biblioteki współdzielone Frontline |
07192fe4 JB |
51 | Group: X11/Libraries |
52 | ||
53 | %description libs | |
54 | This package contains Frontline shared libraries, used by all versions | |
55 | of Frontline GUI. | |
56 | ||
0eda6d4e JR |
57 | %description libs -l pl.UTF-8 |
58 | Ten program zawiera biblioteki współdzielone Frontline, używane przez | |
07192fe4 JB |
59 | wszystkie wersje interfejsu Frontline. |
60 | ||
61 | %package devel | |
62 | Summary: Frontline development files | |
7678149f | 63 | Summary(pl.UTF-8): Pliki dla programistów używających Frontline |
07192fe4 | 64 | Group: X11/Development/Libraries |
3653e098 | 65 | Requires: %{name}-libs = %{version}-%{release} |
07192fe4 JB |
66 | |
67 | %description devel | |
68 | Frontline development files. | |
69 | ||
0eda6d4e JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki dla programistów używających Frontline. | |
07192fe4 JB |
72 | |
73 | %package static | |
74 | Summary: Frontline static libraries | |
7678149f | 75 | Summary(pl.UTF-8): Biblioteki statyczne Frontline |
07192fe4 | 76 | Group: X11/Development/Libraries |
3653e098 | 77 | Requires: %{name}-devel = %{version}-%{release} |
07192fe4 JB |
78 | |
79 | %description static | |
80 | Frontline static libraries. | |
81 | ||
0eda6d4e | 82 | %description static -l pl.UTF-8 |
07192fe4 JB |
83 | Biblioteki statyczne Frontline. |
84 | ||
85 | %package -n gimp-plugin-frontline | |
86 | Summary: GIMP Frontline plugin | |
7678149f | 87 | Summary(pl.UTF-8): Wtyczka Frontline dla GIMPa |
07192fe4 | 88 | Group: X11/Libraries |
3653e098 | 89 | Requires: %{name}-libs = %{version}-%{release} |
07192fe4 JB |
90 | |
91 | %description -n gimp-plugin-frontline | |
92 | GIMP frontline plugin - you can launch frontline from the GIMP menu. | |
93 | ||
0eda6d4e | 94 | %description -n gimp-plugin-frontline -l pl.UTF-8 |
07192fe4 JB |
95 | Wtyczka frontline dla GIMPa - pozwala na uruchomienie frontline z menu |
96 | GIMPa. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
3653e098 | 100 | %patch0 -p1 |
cf95ce99 | 101 | %patch1 -p1 |
07192fe4 JB |
102 | |
103 | %build | |
9430e8da | 104 | %{!?with_gimp:echo 'AC_DEFUN([AM_PATH_GIMP],[$3])' >> acinclude.m4} |
d94f96a0 | 105 | %{__gettextize} |
07192fe4 JB |
106 | %{__libtoolize} |
107 | %{__aclocal} -I %{_aclocaldir}/gnome | |
108 | %{__autoconf} | |
109 | %{__automake} | |
110 | %configure | |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT \ | |
3653e098 | 118 | Graphicsdir=%{_desktopdir} \ |
07192fe4 JB |
119 | m4datadir=%{_aclocaldir} \ |
120 | pkgconfigdir=%{_pkgconfigdir} | |
121 | ||
122 | for f in CHANGES README TODO ; do | |
123 | mv -f gundo/$f ${f}.gundo | |
124 | done | |
125 | ||
aab589fe | 126 | rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info |
127 | ||
07192fe4 JB |
128 | %find_lang %{name} |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post libs -p /sbin/ldconfig | |
134 | %postun libs -p /sbin/ldconfig | |
135 | ||
136 | %files | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_bindir}/frontline | |
aab589fe | 139 | |
3653e098 | 140 | %{_desktopdir}/*.desktop |
07192fe4 JB |
141 | |
142 | %files libs -f %{name}.lang | |
143 | %defattr(644,root,root,755) | |
144 | %doc AUTHORS BUGS ChangeLog NEWS README TODO {CHANGES,README,TODO}.gundo | |
3653e098 JB |
145 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
146 | %{_pixmapsdir}/*.png | |
07192fe4 JB |
147 | |
148 | %files devel | |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_bindir}/frontline-config | |
151 | %attr(755,root,root) %{_libdir}/lib*.so | |
152 | %{_libdir}/lib*.la | |
153 | %{_includedir}/frontline | |
154 | %{_includedir}/gundo | |
155 | %{_aclocaldir}/frontline.m4 | |
156 | %{_pkgconfigdir}/frontline.pc | |
157 | ||
158 | %files static | |
159 | %defattr(644,root,root,755) | |
160 | %{_libdir}/lib*.a | |
161 | ||
9430e8da | 162 | %if %{with gimp} |
07192fe4 JB |
163 | %files -n gimp-plugin-frontline |
164 | %defattr(644,root,root,755) | |
4a1c14eb | 165 | %attr(755,root,root) %{gimpplugindir}/plug-ins/trace |
79e3192a | 166 | %endif |