2011-06-01 12:00:16 +02:00
|
|
|
#
|
|
|
|
# spec file for package cdecl
|
|
|
|
#
|
2020-01-21 23:25:30 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-06-01 12:00:16 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-03-26 10:28:50 +01:00
|
|
|
|
2019-12-16 17:02:16 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-01 12:00:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cdecl
|
2020-05-27 11:49:48 +02:00
|
|
|
Version: 7.1
|
2019-12-16 17:02:16 +01:00
|
|
|
Release: 0
|
2011-06-01 12:00:16 +02:00
|
|
|
Summary: C/C++ function declaration translator
|
2019-12-16 17:10:27 +01:00
|
|
|
License: GPL-3.0-or-later
|
2019-12-16 17:02:16 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
URL: https://github.com/paul-j-lucas/cdecl/
|
2011-06-01 12:00:16 +02:00
|
|
|
|
2020-01-07 10:07:35 +01:00
|
|
|
Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz
|
2019-12-16 17:02:16 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: readline-devel
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Turn English phrases to C or C++ declarations Cdecl is a program
|
|
|
|
which will turn English-like phrases such as "declare foo as array 5
|
|
|
|
of pointer to function returning int" into C declarations such as
|
|
|
|
"int (*foo[5])()". It can also translate the C into the
|
|
|
|
pseudo-English. And it handles typecasts, too. Plus C++. And in this
|
|
|
|
version it has command line editing and history with the GNU readline
|
|
|
|
library.
|
|
|
|
|
|
|
|
%prep
|
2019-12-16 17:02:16 +01:00
|
|
|
%autosetup -p1
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%build
|
2019-12-16 17:02:16 +01:00
|
|
|
%configure
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%install
|
2019-12-16 17:02:16 +01:00
|
|
|
%make_install
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/*
|
|
|
|
%_mandir/*/*
|
2019-12-16 17:02:16 +01:00
|
|
|
%license COPYING
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%changelog
|