From 3d1f7f2a07bacb75dc548bc42eca94067c83f55d Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 22 Jul 2021 16:55:13 +0200 Subject: [PATCH] Initial import (#1980342) --- .gitignore | 1 + ...3d4ff12f783322ad88999841daeabc09bd86.patch | 26 ++++++++ libxcvt.spec | 66 +++++++++++++++++++ sources | 1 + 4 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 8e7c3d4ff12f783322ad88999841daeabc09bd86.patch create mode 100644 libxcvt.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d3e5cb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libxcvt-0.1.0.tar.xz diff --git a/8e7c3d4ff12f783322ad88999841daeabc09bd86.patch b/8e7c3d4ff12f783322ad88999841daeabc09bd86.patch new file mode 100644 index 0000000..7ad4acc --- /dev/null +++ b/8e7c3d4ff12f783322ad88999841daeabc09bd86.patch @@ -0,0 +1,26 @@ +From 8e7c3d4ff12f783322ad88999841daeabc09bd86 Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Thu, 8 Jul 2021 10:46:14 +0200 +Subject: [PATCH] lib/meson: Add version to the shared library + +This is a very early release likely to change in the future, make sure +to use library versioning. + +Signed-off-by: Olivier Fourdan +--- + lib/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/meson.build b/lib/meson.build +index 91be84c..b3ff615 100644 +--- a/lib/meson.build ++++ b/lib/meson.build +@@ -2,4 +2,5 @@ libxcvt_sources = ['libxcvt.c'] + libxcvt = shared_library('xcvt', + libxcvt_sources, + include_directories : inc, ++ version: meson.project_version(), + install : true) +-- +GitLab + diff --git a/libxcvt.spec b/libxcvt.spec new file mode 100644 index 0000000..27826f7 --- /dev/null +++ b/libxcvt.spec @@ -0,0 +1,66 @@ +Name: libxcvt +Version: 0.1.0 +Release: 1%{?dist} +Summary: VESA CVT standard timing modelines generator + +URL: https://gitlab.freedesktop.org/xorg/lib/libxcvt/ +Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.xz + +# https://gitlab.freedesktop.org/xorg/lib/libxcvt/-/merge_requests/3 +# Set soname +Patch0: 8e7c3d4ff12f783322ad88999841daeabc09bd86.patch + +License: MIT + +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: meson + +%description +libxcvt is a library providing a standalone version of the X server +implementation of the VESA CVT standard timing modelines generator. + +%package devel +Summary: Development package +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package -n cvt +Summary: Command line tool to calculate VESA CVT mode lines +Conflicts: xorg-x11-server-Xorg < 1.21 + +%description -n cvt +A standalone version of the command line tool cvt copied from the Xorg +implementation and is meant to be a direct replacement to the version +provided by the Xorg server. + +%prep +%autosetup -S git_am -n %{name}-%{version} + +%build +%meson +%meson_build + +%install +%meson_install + +%files +%doc COPYING +%{_libdir}/libxcvt.so.* + +%files devel +%{_libdir}/pkgconfig/libxcvt.pc +%dir %{_includedir}/libxcvt +%{_includedir}/libxcvt/*.h +%{_libdir}/libxcvt.so + +%files -n cvt +%{_bindir}/cvt +%{_mandir}/man1/cvt.1* + +%changelog +* Thu Jul 8 2021 Olivier Fourdan - 0.1.0-1 +- Initial import (#1980342) diff --git a/sources b/sources new file mode 100644 index 0000000..b194ba8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libxcvt-0.1.0.tar.xz) = c2ca7abfc2954cf4427e0b3c3e302aad438525118dc9fa2047fce2bce6578863696387af8eb7adfad40af6313d9d9c87a9dcaf7e026e8049d48118063f6f0088