etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / contrib / idn / idnkit-1.0-src / tools / rpm / idnkit.spec
blobc740570a276867cc5dccb92687175be865c6a7d7
1 %define prefix /usr
2 %define sysconfdir /etc
3 %define version 1.0
5 # official/beta release:
6 #define release 1
7 #define distrel %{version}
9 # release candidate:
10 %define release rc1
11 %define distrel %{version}-%{release}
13 %define serial 2002051501
15 %define name idnkit
16 %define distsrc %{name}-%{distrel}-src
18 Name: %{name}
19 Version: %{version}
20 Release: %{release}
21 Copyright: distributable
22 Group: System Environment
23 Source: %{distsrc}.tar.gz
24 BuildRoot: /var/tmp/%{name}-root
25 Serial: %{serial}
26 Summary: Internationalized Domain Name kit (idnkit/JPNIC)
27 Vendor: JPNIC
28 Packager: Japan Network Information Center
30 %description
31 idnkit is a kit for handling Internationalized Domain Name.
33 %package devel
34 Group: Development/Libraries
35 Summary: The development files for idnkit
37 %description devel
38 The header files and libraries (libidnkit.a and libidnkitlite.a)
39 to develop applications that use the libraries.
41 %prep
42 %setup -n %{distsrc}
44 %build
45 if [ -f /usr/lib/libiconv.a -o -f /usr/lib/libiconv.so ]
46 then
47 if [ -f /lib/libc-2.0* ]
48 then
49 ICONV="--with-iconv=yes"
53 CFLAGS="$RPM_OPT_FLAGS" ./configure \
54 --prefix=%{prefix} --sysconfdir=%{sysconfdir} \
55 --enable-runidn \
56 $ICONV
57 make
59 %install
60 rm -fr $RPM_BUILD_ROOT
61 make DESTDIR=$RPM_BUILD_ROOT install
62 mv $RPM_BUILD_ROOT/etc/idn.conf.sample $RPM_BUILD_ROOT/etc/idn.conf
63 mv $RPM_BUILD_ROOT/etc/idnalias.conf.sample $RPM_BUILD_ROOT/etc/idnalias.conf
65 # devel kit
66 #install -c lib/libidnkit.a $RPM_BUILD_ROOT/usr/lib
67 #cp -r include/idn $RPM_BUILD_ROOT/usr/include
69 # docs
70 mkdir rpm_docs
71 (cp NEWS INSTALL INSTALL.ja DISTFILES README.ja README LICENSE.txt \
72 ChangeLog rpm_docs)
73 cp -r patch rpm_docs
75 %clean
76 rm -fr $RPM_BUILD_ROOT
78 %files
79 %defattr(-, root, root)
80 %{prefix}/bin/idnconv
81 %{prefix}/bin/runidn
82 %{prefix}/lib/libidnkit.so.*
83 %{prefix}/lib/libidnkitlite.so.*
84 %{prefix}/lib/libidnkitres.so.*
85 %{prefix}/share/idnkit/*
86 %config %{sysconfdir}/idn.conf
87 %config %{sysconfdir}/idnalias.conf
88 %attr(0644, root, root) %config(noreplace)
89 %attr(0644, root, man) %{prefix}/man/man1/*
90 %attr(0644, root, man) %{prefix}/man/man3/*
91 %attr(0644, root, man) %{prefix}/man/man5/*
92 %doc rpm_docs/*
94 %files devel
95 %defattr(-, root, root)
96 %{prefix}/lib/libidnkit.a
97 %{prefix}/lib/libidnkit.la
98 %{prefix}/lib/libidnkit.so
99 %{prefix}/lib/libidnkitlite.a
100 %{prefix}/lib/libidnkitlite.la
101 %{prefix}/lib/libidnkitlite.so
102 %{prefix}/lib/libidnkitres.a
103 %{prefix}/lib/libidnkitres.la
104 %{prefix}/lib/libidnkitres.so
105 %{prefix}/include/idn/*
107 %changelog
108 * Web May 15 2002 Motoyuki Kasahara <m-kasahr@sra.co.jp>
109 - 1.0beta2, experimental.
111 * Mon May 28 2001 MANABE Takashi <manabe@dsl.gr.jp>
112 - include runmdn, libmdnresolv
114 * Mon Apr 4 2001 Motoyuki Kasahara <m-kasahr@sra.co.jp>
115 - 2.1 release
117 * Mon Apr 4 2001 Motoyuki Kasahara <m-kasahr@sra.co.jp>
118 - 2.0.1 release
120 * Mon Apr 2 2001 MANABE Takashi <manabe@dsl.gr.jp>
121 - 2.0 release
123 * Fri Mar 3 2001 MANABE Takashi <manabe@dsl.gr.jp>
124 - 1.3 release
126 * Mon Dec 6 2000 MANABE Takashi <manabe@dsl.gr.jp>
127 - add brace/lace functions to libmdnresolv(mdnkit-1.2-runmdn.patch)
128 - include /var/dnsproxy
129 - change files section for compressed man pages
131 * Mon Nov 27 2000 Makoto Ishisone <ishisone@sra.co.jp>
132 - 1.2 release
134 * Thu Nov 2 2000 MANABE Takashi <manabe@dsl.gr.jp>
135 - 1.1 release
137 * Fri Oct 27 2000 MANABE Takashi <manabe@dsl.gr.jp>
138 - dnsproxy.patch1
139 - move libmdnresolv.{la,so} from mdnkit-devel to mdnkit package
141 * Wed Oct 18 2000 MANABE Takashi <manabe@dsl.gr.jp>
142 - 1.0 release