Compare commits

...

No commits in common. 'epel9' and 'i9ce' have entirely different histories.
epel9 ... i9ce

3
.gitignore vendored

@ -1,2 +1 @@
libfakekey-0.1.tar.bz2
/libfakekey-0.3.tar.bz2
SOURCES/libfakekey-0.3.tar.bz2

@ -0,0 +1 @@
9c238bc36289a43e77182a5a5976a9766403c841 SOURCES/libfakekey-0.3.tar.bz2

@ -1,3 +1,143 @@
## START: Set by rpmautospec
## (rpmautospec version 0.2.5)
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
release_number = 6;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
## END: Set by rpmautospec
# Doxygen HTML help is not suitable for packaging due to a minified JavaScript
# bundle inserted by Doxygen itself. See discussion at
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555.
#
# We can enable the Doxygen PDF documentation as a substitute.
%bcond_without doc_pdf
Name: libfakekey
Version: 0.3
%global so_version 0
Release: %autorelease
Summary: Library for converting characters to X key-presses
License: LGPLv2+
URL: https://git.yoctoproject.org/cgit/cgit.cgi/libfakekey
Source0: %{url}/snapshot/libfakekey-%{version}.tar.bz2
BuildRequires: gcc
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
%if %{with doc_pdf}
BuildRequires: doxygen
BuildRequires: doxygen-latex
%endif
%description
libfakekey is a simple library for converting UTF-8 characters into 'fake' X
key-presses.
%package devel
Summary: Development files for libfakekey
Requires: libfakekey%{?_isa} = %{version}-%{release}
Requires: pkgconfig(x11)
Requires: pkgconfig(xtst)
%description devel
The libfakekey-devel package contains libraries and header files for developing
applications that use libfakekey.
%if %{with doc_pdf}
%package doc
Summary: Documentation for the libfakekey library
BuildArch: noarch
%description doc
Documentation for the libfakekey library.
%endif
%prep
%autosetup
%if %{with doc_pdf}
# We enable the Doxygen PDF documentation as a substitute. We must enable
# GENERATE_LATEX and LATEX_BATCHMODE; the rest are precautionary and should
# already be set as we like them. We also disable GENERATE_HTML, since we will
# not use it.
sed -r -i \
-e "s/^([[:blank:]]*(GENERATE_LATEX|LATEX_BATCHMODE|USE_PDFLATEX|\
PDF_HYPERLINKS)[[:blank:]]*=[[:blank:]]*)NO[[:blank:]]*/\1YES/" \
-e "s/^([[:blank:]]*(LATEX_TIMESTAMP|GENERATE_HTML)\
[[:blank:]]*=[[:blank:]]*)YES[[:blank:]]*/\1NO/" \
doc/Doxyfile.in
%endif
%build
# The tarball generated from the git tag has no configure script, so this is
# mandatory. See autogen.sh (which, however, we do not use because we need to
# use the %%configure macro).
autoreconf -f -i -v
%configure --disable-static %{?with_doc_pdf:--enable-doxygen-docs}
%make_build
%if %{with doc_pdf}
%make_build -C doc/latex
%endif
%install
%make_install
rm -vf '%{buildroot}%{_libdir}/libfakekey.la'
# The only test is more like a demo; running it is not valuable
%files
%license COPYING
%{_libdir}/libfakekey.so.%{so_version}
%{_libdir}/libfakekey.so.%{so_version}.*
%files devel
%{_includedir}/fakekey/
%{_libdir}/libfakekey.so
%{_libdir}/pkgconfig/libfakekey.pc
%if %{with doc_pdf}
%files doc
%license COPYING
%doc doc/latex/refman.pdf
%endif
%changelog
* Fri Jan 12 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.3-6
- Rebuilt for MSVSphere 9.3
* Sat Nov 27 2021 Benjamin A. Beasley <code@musicinmybrain.net> 0.3-6
- Tweak a spec file comment
* Thu Oct 07 2021 Benjamin A. Beasley <code@musicinmybrain.net> 0.3-5
- Build Doxygen PDF documentation
* Thu Oct 07 2021 Benjamin A. Beasley <code@musicinmybrain.net> 0.3-4
- Drop useles --enable-maintainer-mode
* Thu Oct 07 2021 Benjamin A. Beasley <code@musicinmybrain.net> 0.3-3
- Drop an EPEL7 macro
* Wed Oct 06 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3-1
- Update to 0.3.0
@ -91,3 +231,4 @@
* Mon May 19 2008 Jon McCann <jmccann@redhat.com> 0.1-1
- Initial package

@ -1,117 +0,0 @@
# Doxygen HTML help is not suitable for packaging due to a minified JavaScript
# bundle inserted by Doxygen itself. See discussion at
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555.
#
# We can enable the Doxygen PDF documentation as a substitute.
%bcond_without doc_pdf
Name: libfakekey
Version: 0.3
%global so_version 0
Release: %autorelease
Summary: Library for converting characters to X key-presses
License: LGPLv2+
URL: https://git.yoctoproject.org/cgit/cgit.cgi/libfakekey
Source0: %{url}/snapshot/libfakekey-%{version}.tar.bz2
BuildRequires: gcc
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
%if %{with doc_pdf}
BuildRequires: doxygen
BuildRequires: doxygen-latex
%endif
%description
libfakekey is a simple library for converting UTF-8 characters into 'fake' X
key-presses.
%package devel
Summary: Development files for libfakekey
Requires: libfakekey%{?_isa} = %{version}-%{release}
Requires: pkgconfig(x11)
Requires: pkgconfig(xtst)
%description devel
The libfakekey-devel package contains libraries and header files for developing
applications that use libfakekey.
%if %{with doc_pdf}
%package doc
Summary: Documentation for the libfakekey library
BuildArch: noarch
%description doc
Documentation for the libfakekey library.
%endif
%prep
%autosetup
%if %{with doc_pdf}
# We enable the Doxygen PDF documentation as a substitute. We must enable
# GENERATE_LATEX and LATEX_BATCHMODE; the rest are precautionary and should
# already be set as we like them. We also disable GENERATE_HTML, since we will
# not use it.
sed -r -i \
-e "s/^([[:blank:]]*(GENERATE_LATEX|LATEX_BATCHMODE|USE_PDFLATEX|\
PDF_HYPERLINKS)[[:blank:]]*=[[:blank:]]*)NO[[:blank:]]*/\1YES/" \
-e "s/^([[:blank:]]*(LATEX_TIMESTAMP|GENERATE_HTML)\
[[:blank:]]*=[[:blank:]]*)YES[[:blank:]]*/\1NO/" \
doc/Doxyfile.in
%endif
%build
# The tarball generated from the git tag has no configure script, so this is
# mandatory. See autogen.sh (which, however, we do not use because we need to
# use the %%configure macro).
autoreconf -f -i -v
%configure --disable-static %{?with_doc_pdf:--enable-doxygen-docs}
%make_build
%if %{with doc_pdf}
%make_build -C doc/latex
%endif
%install
%make_install
rm -vf '%{buildroot}%{_libdir}/libfakekey.la'
# The only test is more like a demo; running it is not valuable
%files
%license COPYING
%{_libdir}/libfakekey.so.%{so_version}
%{_libdir}/libfakekey.so.%{so_version}.*
%files devel
%{_includedir}/fakekey/
%{_libdir}/libfakekey.so
%{_libdir}/pkgconfig/libfakekey.pc
%if %{with doc_pdf}
%files doc
%license COPYING
%doc doc/latex/refman.pdf
%endif
%changelog
%autochangelog

@ -1 +0,0 @@
SHA512 (libfakekey-0.3.tar.bz2) = b0502dbb01839009de7120f8ca939c839850e7c3c88678b52d6df9f4205cbec20769cedd61c9307e8307f6bf789eee25b20d4fe20c25e7285318f5ea1334555a
Loading…
Cancel
Save