Blame SPECS/libxcvt.spec

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