]> git.pld-linux.org Git - packages/autotrace.git/blob - autotrace.spec
ea4beb2c5876a4e751d67b6a21f7d0f7386e71f7
[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 URL:            https://autotrace.sourceforge.net/
13 BuildRequires:  ImageMagick-devel >= 1:7.0.1
14 BuildRequires:  autoconf >= 2.50
15 BuildRequires:  automake
16 BuildRequires:  gettext-tools >= 0.22.5
17 BuildRequires:  glib2-devel >= 2.0
18 BuildRequires:  intltool >= 0.50.1
19 BuildRequires:  libtool >= 2:2
20 BuildRequires:  libpng-devel >= 1.0.6
21 BuildRequires:  ming-devel
22 BuildRequires:  pkgconfig
23 BuildRequires:  pstoedit-devel >= 3.33-4
24 BuildRequires:  sed >= 4.0
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 AutoTrace is a utility that converts bitmap to vector graphics. It can
29 import p[nbgp]m, bmp, tga, png (and many more through ImageMagick)
30 files and write to emf, eps, ai, er, fig, svg, sk and swf files.
31
32 %description -l pl.UTF-8
33 AutoTrace jest narzędziem do konwersji grafiki rastrowej na wektorową.
34 Może wczytywać pliki p[nbgp]m, bmp, tga, png (i wiele innych przez
35 ImageMagick, a zapisywać w formacie emf, eps, ai, er, fig, svg, sk
36 oraz swf.
37
38 %package devel
39 Summary:        AutoTrace library development files
40 Summary(pl.UTF-8):      Pliki dla programistów używających biblioteki AutoTrace
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       ImageMagick-devel >= 1:7.0.1
44 Requires:       glib2-devel >= 2.0
45 Requires:       libpng-devel >= 1.0.6
46 Requires:       ming-devel
47 Requires:       pstoedit-devel >= 3.33-4
48
49 %description devel
50 AutoTrace library header files.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe do biblioteki AutoTrace.
54
55 %package static
56 Summary:        AutoTrace static library
57 Summary(pl.UTF-8):      Biblioteka statyczna AutoTrace
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 AutoTrace static library.
63
64 %description static -l pl.UTF-8
65 Biblioteka statyczna AutoTrace.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70
71 %{__sed} -i -e 's,po/Makefile.in ,,' configure.ac
72
73 %build
74 %{__gettextize}
75 %{__intltoolize}
76 %{__libtoolize}
77 %{__aclocal} -I m4
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # obsoleted by pkg-config
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libautotrace.la
93
94 %find_lang %{name}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc AUTHORS NEWS README.md THANKS TODO
105 %attr(755,root,root) %{_bindir}/autotrace
106 %attr(755,root,root) %{_libdir}/libautotrace.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libautotrace.so.3
108 %{_mandir}/man1/autotrace.1*
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libautotrace.so
113 %{_includedir}/autotrace
114 %{_pkgconfigdir}/autotrace.pc
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libautotrace.a
This page took 0.07219 seconds and 2 git commands to generate.