Blame SPECS/libxcvt.spec

df647f
%if !0%{?rhel}
df647f
%global with_cvt   1
df647f
%endif
df647f
df647f
Name:      libxcvt
df647f
Version:   0.1.2
df647f
Release:   2%{?dist}
df647f
Summary:   VESA CVT standard timing modelines generator
df647f
df647f
URL:       https://gitlab.freedesktop.org/xorg/lib/libxcvt/
df647f
Source0:   https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.xz
df647f
df647f
License:   MIT
df647f
df647f
BuildRequires: gcc
df647f
BuildRequires: git-core
df647f
BuildRequires: meson
df647f
df647f
%description
df647f
libxcvt is a library providing a standalone version of the X server
df647f
implementation of the VESA CVT standard timing modelines generator.
df647f
df647f
%package devel
df647f
Summary: Development package
df647f
Requires: pkgconfig
df647f
Requires: %{name} = %{version}-%{release}
df647f
df647f
%description devel
df647f
The %{name}-devel package contains libraries and header files for
df647f
developing applications that use %{name}.
df647f
df647f
%if 0%{?with_cvt}
df647f
%package -n cvt
df647f
Summary: Command line tool to calculate VESA CVT mode lines
df647f
Conflicts: xorg-x11-server-Xorg < 1.21
df647f
df647f
%description -n cvt
df647f
A standalone version of the command line tool cvt copied from the Xorg
df647f
implementation and is meant to be a direct replacement to the version
df647f
provided by the Xorg server.
df647f
%endif
df647f
df647f
%prep
df647f
%autosetup -S git_am -n %{name}-%{version}
df647f
df647f
%build
df647f
%meson
df647f
%meson_build
df647f
df647f
%install
df647f
%meson_install
df647f
%if !0%{?with_cvt}
df647f
rm -vf %{buildroot}%{_bindir}/cvt
df647f
rm -vf %{buildroot}%{_mandir}/man1/cvt.1*
df647f
%endif
df647f
df647f
%files
df647f
%doc COPYING
df647f
%{_libdir}/libxcvt.so.*
df647f
df647f
%files devel
df647f
%{_libdir}/pkgconfig/libxcvt.pc
df647f
%dir %{_includedir}/libxcvt
df647f
%{_includedir}/libxcvt/*.h
df647f
%{_libdir}/libxcvt.so
df647f
df647f
%if 0%{?with_cvt}
df647f
%files -n cvt
df647f
%{_bindir}/cvt
df647f
%{_mandir}/man1/cvt.1*
df647f
%endif
df647f
df647f
%changelog
df647f
* Thu Dec 22 2022 Olivier Fourdan <ofourdan@redhat.com> - 0.1.2-2
df647f
- Add explicit package version requirement for the devel package
df647f
  for rpminspect.
df647f
df647f
* Tue Jul 19 2022 Olivier Fourdan <ofourdan@redhat.com> - 0.1.2-1
df647f
- Update to 0.1.2
df647f
df647f
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
df647f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
df647f
df647f
* Wed Oct 27 2021 Olivier Fourdan <ofourdan@redhat.com> - 0.1.1-1
df647f
- Update to 0.1.1
df647f
df647f
* Thu Jul 8 2021 Olivier Fourdan <ofourdan@redhat.com> - 0.1.0-1
df647f
- Initial import (#1980342)