]> git.pld-linux.org Git - packages/autotrace.git/blob - autotrace.spec
- patch to fix .pc file, force ImageMagick (over GraphicsMagick default)
[packages/autotrace.git] / autotrace.spec
1 Summary:        AutoTrace - convert bitmap to vector graphics
2 Summary(pl.UTF-8):      AutoTrace - konwerter grafiki rastrowej do wektorowej
3 Name:           autotrace
4 Version:        0.31.10
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Graphics
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
11 Patch0:         %{name}-link.patch
12 Patch1:         %{name}-pc.patch
13 URL:            https://autotrace.sourceforge.net/
14 BuildRequires:  ImageMagick-devel >= 1:7.0.1
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  gettext-tools >= 0.22.5
18 BuildRequires:  glib2-devel >= 2.0
19 BuildRequires:  intltool >= 0.50.1
20 BuildRequires:  libtool >= 2:2
21 BuildRequires:  libpng-devel >= 1.0.6
22 BuildRequires:  ming-devel
23 BuildRequires:  pkgconfig
24 BuildRequires:  pstoedit-devel >= 3.33-4
25 BuildRequires:  sed >= 4.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
32
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
37 oraz swf.
38
39 %package devel
40 Summary:        AutoTrace library development files
41 Summary(pl.UTF-8):      Pliki dla programistów używających biblioteki AutoTrace
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       ImageMagick-devel >= 1:7.0.1
45 Requires:       glib2-devel >= 2.0
46 Requires:       libpng-devel >= 1.0.6
47 Requires:       ming-devel
48 Requires:       pstoedit-devel >= 3.33-4
49
50 %description devel
51 AutoTrace library header files.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe do biblioteki AutoTrace.
55
56 %package static
57 Summary:        AutoTrace static library
58 Summary(pl.UTF-8):      Biblioteka statyczna AutoTrace
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 AutoTrace static library.
64
65 %description static -l pl.UTF-8
66 Biblioteka statyczna AutoTrace.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 %{__sed} -i -e 's,po/Makefile.in ,,' configure.ac
74
75 %build
76 %{__gettextize}
77 %{__intltoolize}
78 %{__libtoolize}
79 %{__aclocal} -I m4
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --with-magick=ImageMagick
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libautotrace.la
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS NEWS README.md THANKS TODO
108 %attr(755,root,root) %{_bindir}/autotrace
109 %attr(755,root,root) %{_libdir}/libautotrace.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libautotrace.so.3
111 %{_mandir}/man1/autotrace.1*
112
113 %files devel
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libautotrace.so
116 %{_includedir}/autotrace
117 %{_pkgconfigdir}/autotrace.pc
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libautotrace.a
This page took 0.118373 seconds and 4 git commands to generate.