]> git.pld-linux.org Git - SPECS.git/blob - libhangul.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / libhangul.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 %bcond_without  tests           # don't perform "make check"
5 #
6 Summary:        Hangul input library
7 Summary(pl.UTF-8):      Biblioteka wprowadzania znaków Hangul
8 Name:           libhangul
9 Version:        0.1.0
10 Release:        2
11 License:        LGPL v2+
12 Group:          Libraries
13 #Source0Download: https://github.com/choehwanjin/libhangul/releases
14 Source0:        http://libhangul.googlecode.com/files/%{name}-%{version}.tar.gz
15 # Source0-md5:  e9cf109772cc5fbc79f5de503ea7550a
16 URL:            http://kldp.net/projects/hangul/
17 BuildRequires:  check-devel
18 BuildRequires:  gettext-tools >= 0.18
19 BuildRequires:  pkgconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libhangul provides common features for Hangul input method programs.
24
25 %description -l pl.UTF-8
26 libhangul udostępnia ogólne funkcje dla programów wykorzystujących
27 metodę wprowadzania znaków Hangul
28
29 %package devel
30 Summary:        Header files for libhangul library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhangul
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 Header files for libhangul library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki libhangul.
40
41 %package static
42 Summary:        Static libhangul library
43 Summary(pl.UTF-8):      Statyczna biblioteka libhangul
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static libhangul library.
49
50 %description static -l pl.UTF-8
51 Statyczna biblioteka libhangul.
52
53 %package apidocs
54 Summary:        libhangul API documentation
55 Summary(pl.UTF-8):      Dokumentacja API biblioteki libhangul
56 Group:          Documentation
57
58 %description apidocs
59 API and internal documentation for libhangul library.
60
61 %description apidocs -l pl.UTF-8
62 Dokumentacja API biblioteki libhangul.
63
64 %prep
65 %setup -q
66
67 %build
68 %configure \
69         %{!?with_static_libs:--disable-static}
70 %{__make}
71
72 %if %{with tests}
73 %{__make} -C test check
74 %endif
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 # obsoleted by pkg-config
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
84
85 %find_lang %{name}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files -f %{name}.lang
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog NEWS README
96 %attr(755,root,root) %{_bindir}/hangul
97 %attr(755,root,root) %{_libdir}/libhangul.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libhangul.so.1
99 %{_datadir}/%{name}
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libhangul.so
104 %{_includedir}/hangul-1.0
105 %{_pkgconfigdir}/libhangul.pc
106
107 %if %{with static_libs}
108 %files static
109 %defattr(644,root,root,755)
110 %{_libdir}/libhangul.a
111 %endif
This page took 0.126125 seconds and 3 git commands to generate.