]> git.pld-linux.org Git - packages/barcode.git/blob - barcode.spec
9cfadf88a8d8cefba25ce603c22e9a66e4f6ae88
[packages/barcode.git] / barcode.spec
1 %define prefix   /usr
2 %define sysconfdir      /etc
3
4 Summary:        GNU barcode
5 Name:           barcode
6 Version:        0.98
7 Release:        1
8 License:        GPL
9 Group:      Applications/Graphics
10 Source0:        ftp://ar.linux.it/pub/barcode/%{name}-%{ver}.tar.gz
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 URL:            http://gnu.systemy.it/software/barcode
13
14 %description
15 This is GNU-barcode. The package is meant to solve most needs in
16 barcode creation with a conventional printer. It can create printouts
17 for the conventional product tagging standards: UPC-A, UPC-E, EAN-13,
18 EAN-8, ISBN, as well as a few other formats. Ouput is generated as
19 either Postscript or Encapsulated Postscript (other back-ends may be
20 added if needed).
21
22 %package devel
23 Summary:        GNU barcode files for development
24 Group:          Development/Libraries
25
26 %description devel
27 This is GNU-barcode. The package is meant to solve most needs in
28 barcode creation with a conventional printer. It can create printouts
29 for the conventional product tagging standards: UPC-A, UPC-E, EAN-13,
30 EAN-8, ISBN, as well as a few other formats. Ouput is generated as
31 either Postscript or Encapsulated Postscript (other back-ends may be
32 added if needed).
33
34 This package contain the C header, the static library and man page for
35 development.
36
37 %prep
38 %setup -q
39
40 %ifarch alpha
41   ARCH_FLAGS="--host=alpha-redhat-linux"
42 %endif
43
44 CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir}
45
46 %build
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58
59 %doc COPYING ChangeLog INSTALL README TODO doc/*.html doc/*.pdf doc/*.ps
60
61 %attr(0755,root,root) %{_bindir}/barcode
62 %attr(0644,root,root) %{_infodir}/barcode.info*
63 %attr(0644,root,root) %{_mandir}/man1/barcode.1*
64
65 %files devel
66 %defattr(644,root,root,755)
67 %attr(0644,root,root) %{_includedir}/barcode.h
68 %attr(0644,root,root) %{_libdir}/libbarcode.a
69 %attr(0644,root,root) %{_mandir}/man3/barcode.3*
This page took 0.035984 seconds and 2 git commands to generate.