source: projects/specs/trunk/lib/libx/libxkbcommon/libxkbcommon-vl.spec @ 10519

Revision 10519, 3.5 KB checked in by tomop, 8 years ago (diff)

libxkbcommon-0.6.1-1

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary: X.Org X11 XKB parsing library
4Summary(ja): X.Org X11 XKB 解析ライブラリ
5Name: libxkbcommon
6Version: 0.6.1
7Release: 1%{?_dist_release}
8License: MIT
9Group: System Environment/Libraries
10URL: http://xkbcommon.org/
11
12Source0: http://xkbcommon.org/download/%{name}-%{version}.tar.xz
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15
16BuildRequires: libxcb-devel
17BuildRequires: xorg-x11-util-macros
18BuildRequires: xkeyboard-config
19BuildRequires: bison
20
21Vendor: Project Vine
22Distribution: Vine Linux
23Packager: Takemikaduchi
24
25
26%description
27xkbcommon is a library to handle keyboard descriptions, including
28loading them from disk, parsing them and handling their state.
29It's mainly meant for client toolkits, window systems, and other
30system applications; currently that includes Wayland, kmscon, GTK+,
31Qt, Clutter, and more. It is also used by some XCB applications for
32proper keyboard support.
33
34
35%package        devel
36Summary:        Development tools for %{name}
37Summary(ja):    %{name} の開発環境
38Group:          Development/Libraries
39Requires:       %{name} = %{version}-%{release}
40Requires:       pkgconfig
41Requires:       libxcb-devel
42
43%description devel
44Header files and libraries for building a extension library for the %{name}.
45
46
47# compat32
48%package -n compat32-%{name}
49Summary: X.Org X11 XKB parsing library
50Summary(ja): X.Org X11 XKB 解析ライブラリ
51Group: System Environment/Libraries
52Requires: %{name} = %{version}-%{release}
53
54%description -n compat32-%{name}
55xkbcommon is a library to handle keyboard descriptions, including
56loading them from disk, parsing them and handling their state.
57It's mainly meant for client toolkits, window systems, and other
58system applications; currently that includes Wayland, kmscon, GTK+,
59Qt, Clutter, and more. It is also used by some XCB applications for
60proper keyboard support.
61
62
63%package -n compat32-%{name}-devel
64Summary:        Development tools for %{name}
65Summary(ja):    %{name} の開発環境
66Group:          Development/Libraries
67Requires:       %{name}-devel = %{version}-%{release}
68Requires:       pkgconfig
69Requires:       compat32-libxcb-devel
70
71%description -n compat32-%{name}-devel
72Header files and libraries for building a extension library for the %{name}.
73
74
75%prep
76%setup -q
77
78%build
79%configure \
80        --disable-static \
81        --with-default-rules=evdev \
82        --with-default-model=pc106 \
83        --with-default-layout=jp
84
85make %{?_smp_mflags}
86
87%install
88rm -rf $RPM_BUILD_ROOT
89
90make install DESTDIR=$RPM_BUILD_ROOT
91
92rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
99
100%post -n compat32-%{name} -p /sbin/ldconfig
101%postun -n compat32-%{name} -p /sbin/ldconfig
102
103%files
104%defattr(-,root,root,-)
105%doc COPYING NEWS README.md
106%{_libdir}/libxkbcommon-x11.so.*
107%{_libdir}/libxkbcommon.so.*
108
109%files devel
110%defattr(-,root,root,-)
111%{_includedir}/xkbcommon/
112%{_libdir}/libxkbcommon-x11.so
113%{_libdir}/libxkbcommon.so
114%{_libdir}/pkgconfig/xkbcommon-x11.pc
115%{_libdir}/pkgconfig/xkbcommon.pc
116
117# compat32
118%if %{build_compat32}
119%files -n compat32-%{name}
120%defattr(-,root,root,-)
121%{_libdir}/libxkbcommon-x11.so.*
122%{_libdir}/libxkbcommon.so.*
123
124%files -n compat32-%{name}-devel
125%defattr(-,root,root,-)
126%{_libdir}/libxkbcommon-x11.so
127%{_libdir}/libxkbcommon.so
128%endif
129
130%changelog
131* Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.1-1
132- new upstream release.
133
134* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1
135- initial build
136
Note: See TracBrowser for help on using the repository browser.