]>
Commit | Line | Data |
---|---|---|
d378c254 | 1 | Summary: AutoTrace - convert bitmap to vector graphics |
9f0583a1 | 2 | Summary(pl.UTF-8): AutoTrace - konwerter grafiki rastrowej do wektorowej |
d378c254 | 3 | Name: autotrace |
a2900c15 JB |
4 | Version: 0.31.10 |
5 | Release: 1 | |
d6bf7299 JB |
6 | License: GPL v2+ |
7 | Group: Applications/Graphics | |
a2900c15 JB |
8 | #Source0Download: https://github.com/autotrace/autotrace/releases |
9 | Source0: https://github.com/autotrace/autotrace/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 3078d2530a65f28c31c89974671ef02a | |
a728ae5d | 11 | Patch0: %{name}-link.patch |
587ce443 | 12 | Patch1: %{name}-pc.patch |
a2900c15 JB |
13 | URL: https://autotrace.sourceforge.net/ |
14 | BuildRequires: ImageMagick-devel >= 1:7.0.1 | |
15 | BuildRequires: autoconf >= 2.50 | |
d378c254 | 16 | BuildRequires: automake |
a2900c15 JB |
17 | BuildRequires: gettext-tools >= 0.22.5 |
18 | BuildRequires: glib2-devel >= 2.0 | |
19 | BuildRequires: intltool >= 0.50.1 | |
20 | BuildRequires: libtool >= 2:2 | |
d378c254 JB |
21 | BuildRequires: libpng-devel >= 1.0.6 |
22 | BuildRequires: ming-devel | |
a2900c15 | 23 | BuildRequires: pkgconfig |
bdf26f51 | 24 | BuildRequires: pstoedit-devel >= 3.33-4 |
a2900c15 | 25 | BuildRequires: sed >= 4.0 |
d378c254 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
df39088c JB |
29 | AutoTrace is a utility that converts bitmap to vector graphics. It can |
30 | import p[nbgp]m, bmp, tga, png (and many more through ImageMagick) | |
31 | files and write to emf, eps, ai, er, fig, svg, sk and swf files. | |
d378c254 | 32 | |
e561cacb JR |
33 | %description -l pl.UTF-8 |
34 | AutoTrace jest narzędziem do konwersji grafiki rastrowej na wektorową. | |
35 | Może wczytywać pliki p[nbgp]m, bmp, tga, png (i wiele innych przez | |
36 | ImageMagick, a zapisywać w formacie emf, eps, ai, er, fig, svg, sk | |
d378c254 JB |
37 | oraz swf. |
38 | ||
39 | %package devel | |
40 | Summary: AutoTrace library development files | |
9f0583a1 | 41 | Summary(pl.UTF-8): Pliki dla programistów używających biblioteki AutoTrace |
d378c254 | 42 | Group: Development/Libraries |
bdf26f51 | 43 | Requires: %{name} = %{version}-%{release} |
a2900c15 JB |
44 | Requires: ImageMagick-devel >= 1:7.0.1 |
45 | Requires: glib2-devel >= 2.0 | |
d2c6cea2 JB |
46 | Requires: libpng-devel >= 1.0.6 |
47 | Requires: ming-devel | |
bdf26f51 | 48 | Requires: pstoedit-devel >= 3.33-4 |
d378c254 JB |
49 | |
50 | %description devel | |
51 | AutoTrace library header files. | |
52 | ||
e561cacb JR |
53 | %description devel -l pl.UTF-8 |
54 | Pliki nagłówkowe do biblioteki AutoTrace. | |
d378c254 JB |
55 | |
56 | %package static | |
57 | Summary: AutoTrace static library | |
9f0583a1 | 58 | Summary(pl.UTF-8): Biblioteka statyczna AutoTrace |
d378c254 | 59 | Group: Development/Libraries |
bdf26f51 | 60 | Requires: %{name}-devel = %{version}-%{release} |
d378c254 JB |
61 | |
62 | %description static | |
63 | AutoTrace static library. | |
64 | ||
e561cacb | 65 | %description static -l pl.UTF-8 |
d378c254 JB |
66 | Biblioteka statyczna AutoTrace. |
67 | ||
68 | %prep | |
69 | %setup -q | |
70 | %patch0 -p1 | |
587ce443 | 71 | %patch1 -p1 |
a2900c15 JB |
72 | |
73 | %{__sed} -i -e 's,po/Makefile.in ,,' configure.ac | |
d378c254 JB |
74 | |
75 | %build | |
a2900c15 JB |
76 | %{__gettextize} |
77 | %{__intltoolize} | |
a89c608d | 78 | %{__libtoolize} |
a2900c15 | 79 | %{__aclocal} -I m4 |
0bc806ef | 80 | %{__autoconf} |
d6bf7299 | 81 | %{__autoheader} |
0bc806ef | 82 | %{__automake} |
587ce443 JB |
83 | %configure \ |
84 | --with-magick=ImageMagick | |
d378c254 JB |
85 | |
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
2eb71034 | 90 | |
a8b6228a PG |
91 | %{__make} install \ |
92 | DESTDIR=$RPM_BUILD_ROOT | |
d378c254 | 93 | |
f1049f72 JB |
94 | # obsoleted by pkg-config |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libautotrace.la | |
96 | ||
a2900c15 JB |
97 | %find_lang %{name} |
98 | ||
d378c254 JB |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
a2900c15 | 105 | %files -f %{name}.lang |
d378c254 | 106 | %defattr(644,root,root,755) |
a2900c15 | 107 | %doc AUTHORS NEWS README.md THANKS TODO |
d378c254 | 108 | %attr(755,root,root) %{_bindir}/autotrace |
d6bf7299 JB |
109 | %attr(755,root,root) %{_libdir}/libautotrace.so.*.*.* |
110 | %attr(755,root,root) %ghost %{_libdir}/libautotrace.so.3 | |
111 | %{_mandir}/man1/autotrace.1* | |
d378c254 JB |
112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
d6bf7299 | 115 | %attr(755,root,root) %{_libdir}/libautotrace.so |
d378c254 | 116 | %{_includedir}/autotrace |
d6bf7299 | 117 | %{_pkgconfigdir}/autotrace.pc |
d378c254 JB |
118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
d6bf7299 | 121 | %{_libdir}/libautotrace.a |