upload tizen1.0 source
authorKim Kibum <kb0929.kim@samsung.com>
Sun, 29 Apr 2012 08:05:16 +0000 (17:05 +0900)
committerKim Kibum <kb0929.kim@samsung.com>
Sun, 29 Apr 2012 08:05:16 +0000 (17:05 +0900)
packaging/xkeyboard-config.spec [new file with mode: 0644]

diff --git a/packaging/xkeyboard-config.spec b/packaging/xkeyboard-config.spec
new file mode 100644 (file)
index 0000000..eaa137f
--- /dev/null
@@ -0,0 +1,91 @@
+#sbs-git:slp/pkgs/xorg/util/xkeyboard-config xkeyboard-config 1.8 bbb9ce90976c61e3637ecc91006de87d9ff59dd7
+Name:       xkeyboard-config
+Summary:    Alternative xkb data files
+Version: 1.8
+Release:    1
+Group:      System/X11
+License:    MIT
+BuildArch:  noarch
+URL:        http://www.x.org
+Source0:    http://xlibs.freedesktop.org/xkbdesc/%{name}-%{version}.tar.gz
+BuildRequires:  pkgconfig(xorg-macros)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  intltool
+BuildRequires:  xorg-x11-xkb-utils
+Provides:    xkbdata
+Obsoletes:   xorg-x11-xkbdata
+
+
+%description
+Alternative xkb data files.
+
+%package -n xkb-data
+Summary:    X Keyboard Extension (XKB) configuration data
+Group:      System/X11
+  
+%description -n xkb-data
+%{summary} 
+
+%package -n xkb-data-i18n
+Summary:    X Keyboard Extension (XKB) configuration data
+Group:      System/X11
+  
+%description -n xkb-data-i18n
+%{summary} 
+
+%prep
+%setup -q
+
+%build
+
+intltoolize -c -f
+autoreconf -vfi
+
+%configure --disable-static \
+    --disable-xkbcomp-symlink --with-xkb-rules-symlink=xfree86,xorg   \
+    --with-xkb-base=/opt/etc/X11/xkb --datarootdir=/opt/etc
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+
+%make_install
+
+# Remove unnecessary symlink
+rm -f $RPM_BUILD_ROOT/opt/etc/X11/xkb/compiled
+
+mkdir -p  %{buildroot}/etc/X11/xkb/
+mv %{buildroot}/opt/etc/X11/xkb/rules/base.xml %{buildroot}/etc/X11/xkb/
+pushd %{buildroot}
+ln -s etc/X11/xkb/base.xml opt/etc/X11/xkb/rules/base.xml
+popd
+
+# Create filelist
+{
+FILESLIST=${PWD}/files.list
+pushd $RPM_BUILD_ROOT
+find ./opt/etc/X11 -type d | sed -e "s/^\./%dir /g" > $FILESLIST
+find ./opt/etc/X11 -type f | sed -e "s/^\.//g" >> $FILESLIST
+popd
+}
+
+%files -f files.list
+/etc/X11/xkb/base.xml
+/opt/etc/X11/xkb/rules/base.xml
+/opt/etc/X11/xkb/rules/xfree86
+/opt/etc/X11/xkb/rules/xfree86.lst
+/opt/etc/X11/xkb/rules/xfree86.xml
+/opt/etc/X11/xkb/rules/xorg
+/opt/etc/X11/xkb/rules/xorg.lst
+/opt/etc/X11/xkb/rules/xorg.xml
+/usr/share/locale/*/LC_MESSAGES/xkeyboard-config.mo
+
+%files -n xkb-data
+#%defattr(-,root,root,-)
+/opt/etc/X11/*
+
+%files -n xkb-data-i18n
+#%defattr(-,root,root,-)
+/usr/share/locale/*
+