Browse Source

enable NumLock in X11 sessions

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10199 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 8 years ago
parent
commit
de4e16aa4c
1 changed files with 63 additions and 0 deletions
  1. 63 0
      n/numlockx/numlockx-vl.spec

+ 63 - 0
n/numlockx/numlockx-vl.spec

@@ -0,0 +1,63 @@
+%define pkg_name    numlockx
+%define pkg_version 1.2
+%define pkg_release 1%{?_dist_release}
+
+Summary:     enable NumLock in X11 sessions
+Summary(ja): X11セッションでNumLockを有効化するユーティリティ
+Name:        %{pkg_name}
+Version:     %{pkg_version}
+Release:     %{pkg_release}
+
+License:  MIT
+Group:    Applications/Other
+URL:      https://github.com/rg3/numlockx
+Source0:  %{pkg_name}-%{pkg_version}.tar.gz
+Source1:  numlockx.sh
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: libX11-devel
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: ara_t
+
+
+%description
+Utilities to enable the keyboard's Numeric Lock during X11 session
+initialization or using command line utility.
+#'
+
+%description -l ja
+X11 セッションの初期化時に、またはコマンドラインユーティリティを用いて
+キーボードのNumeric Lockを有効化するユーティリティです。
+
+
+%prep
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%setup -q
+
+%build
+%{configure}
+%{__make} %{?_smp_mflags}
+
+%install
+%{make_install}
+
+%{__mkdir_p} ${RPM_BUILD_ROOT}/etc/profile.d/
+%{__install} -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/etc/profile.d/
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files
+%defattr(-, root, root)
+%doc AUTHORS ChangeLog LICENSE README TODO
+/etc/profile.d/
+%{_bindir}/
+
+
+%changelog
+* Tue Apr 26 2016 Toshiaki Ara <ara_t@384.jp> 1.2-1
+- new package
+