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
|
2021-01-24 12:08:34 +01:00
|
|
|
Version: 9.4
|
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
|
2020-09-04 15:13:30 +02:00
|
|
|
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
|
2020-09-04 15:14:33 +02:00
|
|
|
declarations such as "int (*foo[5])()" and vice-versa. It handles
|
|
|
|
typecasts and C++ as well, and offers command line editing and
|
|
|
|
history.
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%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
|